package com.yky.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 机构承担项目情况
 * @author vimesly
 * 
 */

@SuppressWarnings("serial")
@Entity
@Table(name = "work_organization_records_assume_project")
public class OrganizationRecordsAssumeProject implements Serializable {

	private Integer id;

	private String projectType; // 项目类型
	private String projectName; // 项目名称
	private String projectNumber; // 项目编号
	private String principal; // 负责人
	private String expenditure; // 经费（万）
	private String leaderUnit; // 牵头单位/参与单位
	private String participationUnit; // 参与单位名单

	private OrganizationRecords organizationRecords;
	
	private String username;

	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "project_type")
	public String getProjectType() {
		return projectType;
	}

	public void setProjectType(String projectType) {
		this.projectType = projectType;
	}

	@Column(name = "project_name")
	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	@Column(name = "project_number")
	public String getProjectNumber() {
		return projectNumber;
	}

	public void setProjectNumber(String projectNumber) {
		this.projectNumber = projectNumber;
	}

	@Column(name = "principal")
	public String getPrincipal() {
		return principal;
	}

	public void setPrincipal(String principal) {
		this.principal = principal;
	}

	@Column(name = "expenditure")
	public String getExpenditure() {
		return expenditure;
	}

	public void setExpenditure(String expenditure) {
		this.expenditure = expenditure;
	}

	@Column(name = "leader_unit")
	public String getLeaderUnit() {
		return leaderUnit;
	}

	public void setLeaderUnit(String leaderUnit) {
		this.leaderUnit = leaderUnit;
	}

	@Column(name = "participation_unit")
	public String getParticipationUnit() {
		return participationUnit;
	}

	public void setParticipationUnit(String participationUnit) {
		this.participationUnit = participationUnit;
	}

	@ManyToOne
	@JoinColumn(name = "organization_records_id")
	public OrganizationRecords getOrganizationRecords() {
		return organizationRecords;
	}

	public void setOrganizationRecords(OrganizationRecords organizationRecords) {
		this.organizationRecords = organizationRecords;
	}

	@Column(name = "username")
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	
	

}
